package com.ruoyi.common.constant.wechat;

/**
 * 微信小程序常量
 *
 * @author jiexiang.sun/Jason
 * @version 1.0.0
 * @create 2022-03-03 23:29
 **/
public class WechatConstants {

    /**
     * 账号注册短信验证码缓存KEY前缀
     */
    public static final String WECHAT_ACCOUNT_REGISTER_CAPTCHA_CACHE_KEY_PREFIX = "WECHAT:ACCOUNT:REGISTER:CAPTCHA:";

    /**
     * 账号密码找回短信验证码缓存KEY前缀
     */
    public static final String WECHAT_ACCOUNT_FORGET_PASSWORD_CAPTCHA_CACHE_KEY_PREFIX = "WECHAT:ACCOUNT:FORGET:PASSWORD:CAPTCHA:";

    /**
     * 岗位信息缓存KEY
     */
    public static final String WECHAT_POST_CAPTCHA_CACHE_KEY = "WECHAT:POST:CAPTCHA";

    /**
     * 用户ID
     */
    public static final String WECHAT_TOKEN_USERID = "userId";

    /**
     * 用户角色id
     */
    public static final String WECHAT_TOKEN_USER_ROLEID = "userRoleId";

    /**
     * 用户所属部门id集合
     */
    public static final String WECHAT_TOKEN_USER_DEPTID = "userDeptId";

    /**
     * 微信小程序用户TOKEN（非jwt)前缀
     */
    public static final String WECHAT_TOKEN_KEY_PREFIX = "WECHAT_TOKEN_";

    /**
     * 省缓存KEY
     */
    public static final String WECHAT_PROVINCE_CACHE_KEY = "WECHAT:PROVINCE";

    /**
     * 市缓存KEY前缀
     */
    public static final String WECHAT_CITY_CACHE_KEY_PREFIX = "WECHAT:PROVINCE:";

    /**
     * 区县缓存KEY前缀
     */
    public static final String WECHAT_AREA_CACHE_KEY_PREFIX = "WECHAT:CITY:";

    /**
     * 街道缓存KEY前缀
     */
    public static final String WECHAT_STREET_CACHE_KEY_PREFIX = "WECHAT:STREET:";
}
